home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9102 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: gail.ripco.com!mambuhl
  2. From: mambuhl@ripco.com (Martin Ambuhl)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Memory models
  5. Date: 7 Mar 1996 15:18:26 GMT
  6. Organization: Ripco Communications, Inc.
  7. Message-ID: <4hmuo2$oju@gail.ripco.com>
  8. NNTP-Posting-Host: foley.ripco.com
  9.  
  10. vakimo@cc.Helsinki.FI (Petri Vakimo) in
  11. <4hf5s4$e71@oravannahka.Helsinki.FI> writes:
  12.  
  13. [Warning - platform-specific info follows, if you can call M$dog a
  14. platform]
  15.  
  16. >I have TC++ 3.0 and so far I have been using SMALL memory model. Now I
  17. >need more memory for variables etc. so I tried to use LARGE model.
  18. >Surprise, it doesn't exist!
  19.  
  20. What is "it"?  TC++ 3.0 certainly does support all of the M$dog
  21. tiny/small/medium/compact/large/huge models.  It is likely that you did
  22. only a partial installation before.  Reinstall the compiler and this
  23. time tell the installer that you want all the memory models.  You need
  24. different startup code and libraries for the different models.
  25.  
  26. >Then I tried to do it by myself. As you propably know, I didn't succeed.
  27.  
  28. What is this "it"?  What did you try to do -- write your own compiler,
  29. startup modules and libraries?
  30.  
  31. >So I would be very happy if someone could tell me what I exactly have to
  32. >do? Help me, please.
  33.  
  34. See above.  Reading your documentation would be a good place to start.
  35. Try reading p.14 of your User's Guide ("Using INSTALL")
  36.  
  37. For the various models, make sure you have C0x.OBJ, MATHx.LIB, and
  38. Cx.LIB, where x is s, c, m, l, or h.  For tiny models you must also have
  39. C0T.LIB (it uses MATHS.LIB and CS.LIB).  See pp. 334-337 in your User's
  40. Guide.  Reading your documentation should always be the _first_ thing
  41. you do when you have a problem.
  42.                  
  43. --
  44. * Martin Ambuhl       net: mambuhl@ripco.com
  45. * Chicago, IL (USA)    
  46.